<?php if(isset($this->errors)&&(!empty($this->errors))) { ?>
   <span id='error'>
   <?php foreach ($this->errors as $label=>$errorMessage) {
     echo $errorMessage; 
   } ?>
    </span>
<?php } ?>